﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NCalculator.Operations;

namespace NCalculator
{
    [Serializable()]
    public class SingleHistoryLine
    {
        #region Attributes
        private List<Node> _history; // for single line
        #endregion

        /// <summary>
        /// Copy history line
        /// </summary>
        /// <param name="list">List with single history line</param>
        public void CopyHistoryLine(List<Node> list)
        {
            _history = new List<Node>(list); // copy list
        }

        public List<Node> List
        {
            get { return _history; }
        }
    }
}
